'use strict';
const {
	getToken,
	verifyToken
} = require("wx-common")
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const {
		token
	} = event
	//解密token
	const result = verifyToken(token)
	//返回数据给客户端
	return {
		code: 200,
		msg: "获取成功",
		data: {
			result
		}
	}
};